﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SCRS.Model;
#nullable disable
/// <summary>
/// 商品
/// </summary>
[Table("SYS_COMMODITY")]
public class Commodity
{
    /// <summary>
    /// 商品编号
    /// </summary>
    [Key]
    [Column("ID")]
    public string Id { get; set; }
    /// <summary>
    /// 商品名称
    /// </summary>
    [Column("NAME")]
    public string Name { get; set; }
    /// <summary>
    /// 商品进货价格
    /// </summary>
    [Column("PURCHASE_PRICE")]
    public decimal PurchasePrice { get; set; }
    /// <summary>
    /// 零售价
    /// </summary>
    [Column("RETAIL_PRICE")]
    public decimal RetailPrice { get; set; }
    /// <summary>
    /// 商品库存
    /// </summary>
    [Column("STOCK")]
    public int Stock { get; set; }
}